﻿import com.dinmax.flash.central.extension.state.*
//import com.dinmax.flash.central.extension.call.*
import com.dinmax.flash.central.extension.*

class Active extends Enabled {
	
	//private var activeCall:Call;
	private var extension:Extension;
	private var name:String = ACTIVE;
	private var description:String = "talking";

	function Active(time:Date, extension:Extension){
		//this.activeCall = activeCall;
		super(time);
		trace("new Active()");
		this.extension = extension;
	};
	
	public function getExtension():Extension {
		return extension;
	};
	public function setExtension(extension:Extension):Void {
		this.extension = extension;
	};
	
	public function getDescription():String {
		return description+" with "+this.getExtension().getNumber();
	}
	public function isActive():Boolean {
		return true;
	}; //fin funci	
	
}; // fin de clase